def reverse_bits(num: int) -> int:
    result = 0

    for i in range(32):
        result = (result << 1) + (num & 1)
        num >>= 1
    return result

print(reverse_bits(4294967293))